<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title></title>
  </head>
  <body>
    <div id="app">{{ proxy }}</div>

    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

    <script>
      const { createApp, reactive } = Vue;

      const app = createApp({
        setup() {
          const proxy = reactive({});

          const raw = {};
          proxy.nested = raw;

          // 深层响应性，响应式对象内的嵌套对象依然是代理对象
          console.log(proxy.nested === raw); // false

          return {
            proxy,
          };
        },
      });

      app.mount("#app");
    </script>
  </body>
</html>
